/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const studentRouter = {
  path: '/student',
  component: Layout,
  redirect: '/student/list',
  alwaysShow: true, // will always show the root menu
  name: 'student',
  meta: {
    title: '学员管理',
    icon: 'students',
    roles: ['admin', 'org', 'school', 'teacher']
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/student/list'),
      name: 'studentList',
      meta: { title: '学员列表', icon: 'list' }
    },
    {
      path: 'create',
      component: () => import('@/views/student/create'),
      name: 'studentCreate',
      meta: { title: '添加学员', icon: 'create' }
    }
  ]
}

export default studentRouter
